const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc') 

dayjs.extend(utc)

function timeFormat(time, format = 'YYYY-MM-DD HH:mm:ss') {
  return dayjs.utc(time).utcOffset(8).format(format)
}

module.exports = {
  timeFormat
}

